<!-- this is a view demonstrating the capabilities of generic/object_detail.thml -->
{% extends 'generic/object_detail.html' %}
{% load helpers %}

{% block extra_breadcrumb %}
        <li>
            <a href="{% url 'plugins:dummy_plugin:dummymodel_list' %}?number={{ object.number }}">{{ object.number }} (Breadcrumbs)</a>
        </li>
{% endblock extra_breadcrumb %}

{% block extra_buttons %}
        <a onClick="alert('I am from the detail view template.')" class="btn btn-success">
            <span class="mdi mdi-exclamation-thick" aria-hidden="true"></span> Extra Buttons go here
        </a>
{% endblock extra_buttons %}

{% block panel_buttons %}
        <a onClick="alert('I am from the detail view template.')" class="btn btn-primary">
            <span class="mdi mdi-help" aria-hidden="true"></span> Panel Buttons go here
        </a>
        <a onClick="alert('I am from the detail view template.')" class="btn btn-primary">
            <span class="mdi mdi-help" aria-hidden="true"></span> Another Panel Button
        </a>
{% endblock panel_buttons %}

{% block content_left_page %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>DummyModel (Left Page Content)</strong>
            </div>

            <table class="table table-hover panel-body attr-table">
                <tr>
                    <td>Name</td>
                    <td><span>{{ object.name }}</span></td>
                </tr>
                <tr>
                    <td>Number</td>
                    <td><span>{{ object.number }}</span></td>
                </tr>
            </table>
        </div>
{% endblock content_left_page %}

{% block content_right_page %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>View Template Right Page Content</strong>
            </div>

            <table class="table table-hover panel-body attr-table">
                <tr>
                    <th>Things</th>
                    <th>Stuff</th>
                </tr>
                <tr>
                    <td><span>Shoe, Horse, Dog</span></td>
                    <td><span>Widgets, Cogs, Sprockets</span></td>
                </tr>
            </table>
        </div>
{% endblock content_right_page %}

{% block content_full_width_page %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>View Template Full Width Page Content</strong>
            </div>

            <table class="table table-hover panel-body attr-table">
                <tr>
                    <th>ID</th>
                    <th>Name</th>
                    <th>Number</th>
                    <th>Salt</th>
                    <th>Pepper</th>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Bob</td>
                    <td>-42</td>
                    <td>Yes</td>
                    <td>No</td>
                </tr>
            </table>
        </div>
{% endblock content_full_width_page %}
